<!--<?php
print<<<EF
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templates/msystem/ljy.css" rel="stylesheet" type="text/css" />
<link href="ljy.css" rel="stylesheet" type="text/css" />

</head>

<base target="_self" />
<body style="text-align:left">
<script type="text/javascript">
function clickall()
{
	var fobj = document.getElementById('form2');
	var num = fobj.length;
	for(var i=0;i<num;i++)
	{
		if(fobj.elements[i].type=='checkbox')
		{
			if(fobj.elements[i].checked==true)
			{
			   fobj.elements[i].checked=false;
			}
			else
			{
			   fobj.elements[i].checked=true;
			}
		}
	}
}
</script>
<div id="toppath">日况信息管理<a href="?ostable=$ostable&action=add">添加日况信息</a></div> 
  <form name="form2" method="post" action="?ostable=$ostable&action=delete">
<table style=" float:left;" width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">

  <tr>
<th align="center" valign="middle" bgcolor="#F0F0F0"></th>
<th align="center" valign="middle" bgcolor="#F0F0F0">ID</th>
<th align="center" valign="middle" bgcolor="#F0F0F0">标题</th>
<th align="center" valign="middle" bgcolor="#F0F0F0">日期</th>
<th align="center" valign="middle" bgcolor="#F0F0F0">操作</th>

  </tr>
<!--
EF;
foreach($weblist as $list){
$title=cutstr($list[title],30);
$tdate=date('Y-m-d',strtotime($list[tdate]));
print<<<EF
-->
<tr id="td_{$list[id]}">
<td width="5%"><input type="checkbox" name="list[]" value="$list[id]" /></td>
<td width="5%" align="center" valign="middle" bgcolor="#F0F0F0">$list[id]</td>
<td width="30%" align="center" valign="middle" bgcolor="#F0F0F0">
$title
</td>
<td width="15%" align="center" valign="middle" bgcolor="#F0F0F0">$tdate</td>
<td width="20%" align="center" valign="middle" bgcolor="#F0F0F0">
<a href="?ostable=$ostable&action=edit&amp;id={$list[id]}">编辑</a>
</td>

  </tr>
<!-- 
EF;
}
print<<<EF
-->
</table>
<div style="text-align:center;margin:5px auto;">{$pages}</div>
  <div align="center">
		<input class="submit" type="button" value="全选" onclick="clickall();" />
		&nbsp;&nbsp;
		<input name="action" type="submit" class="submit" id="delete" value="删除" />
		&nbsp;&nbsp;
		<input name="cancal" type="reset" class="submit" id="cancal"  value="重置" />	  
  </div>
		</form>
</body>
</html>
<!--
EF;
?>
-->